package com.bingxue.edu.parent.model.resp;
import com.bingxue.edu.common.enums.QuestionModuleEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Data
public class ExamQuestionDistResp {
    private static final List<String> ALL_MODULES = Arrays.stream(QuestionModuleEnum.values()).map(QuestionModuleEnum::getLabel).collect(Collectors.toList());
    private List<String> categories = ALL_MODULES;
    private List<BigDecimal> totalScore;
    private List<BigDecimal> averageScore;
    private List<BigDecimal> studentScore;
}
